import request from '@/utils/request'

// 查询仓库出入明细列表
export function listWoodDepotDetail(query) {
  return request({
    url: '/storage/woodDepotDetail/list',
    method: 'get',
    params: query
  })
}

// 查询仓库出入明细详细
export function getWoodDepotDetail(detailId) {
  return request({
    url: '/storage/woodDepotDetail/' + detailId,
    method: 'get'
  })
}

// 新增仓库出入明细
export function addWoodDepotDetail(data) {
  return request({
    url: '/storage/woodDepotDetail',
    method: 'post',
    data: data
  })
}

// 修改仓库出入明细
export function updateWoodDepotDetail(data) {
  return request({
    url: '/storage/woodDepotDetail',
    method: 'put',
    data: data
  })
}

// 删除仓库出入明细
export function delWoodDepotDetail(detailId) {
  return request({
    url: '/storage/woodDepotDetail/' + detailId,
    method: 'delete'
  })
}

// 导出仓库出入明细
export function exportWoodDepotDetail(query) {
  return request({
    url: '/storage/woodDepotDetail/export',
    method: 'get',
    params: query
  })
}